package com.cy.sys.mapper;

import com.cy.sys.pojo.Classify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClassifyMapper {

    @Select("select * from classify where classify_id=#{id}")
    Classify selectById(Integer id);

    int insertClassify(Classify entity);
    
    @Select("select * from classify")
    List<Classify> selectAll();
}
